result = color_img.copy()
if lines is not None:
    for line in lines:
        x1, y1, x2, y2 = line[0]
        # 计算角度
        dx = x2 - x1
        dy = y2 - y1
        angle = np.arctan2(float(dy), dx) * 180 / np.pi
        cv2.line(result, (x1, y1), (x2, y2), (255, 0, 0), 1)